package com.intellagric.service.traceability.trace_field;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.module.traceability.FieldVo;
import com.intellagric.pojo.TraceField;

/**
 * @Author: zhy
 * @email: 1269679946@qq.com
 * @Date: 2018/11/6
 * @DESC： 场地信息服务接口
 */
public interface FieldService {

    //增加场地信息
    ResponseMessage addField(TraceField field);

    //删除场地信息
    ResponseMessage deleteField(String id);

    //修改场地信息
    ResponseMessage editField(TraceField field);

    //查询场地信息
    TraceField getFieldById(String id);
    LayuiDataGridResult getFieldList();
    LayuiDataGridResult getFieldPage(int page ,int rows);
    LayuiDataGridResult getFieldPage(int page ,int rows,String createBy);
    LayuiDataGridResult getFieldByVo(FieldVo fieldVo);
    LayuiDataGridResult getFieldByVo(int page,int limit,FieldVo fieldVo);
}
